package com.joshua.viewtest.demo.floatingtoolbar;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;

import com.github.rubensousa.floatingtoolbar.FloatingToolbar;
import com.joshua.viewtest.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class FloatingToolbarAty extends AppCompatActivity implements View.OnClickListener,
        FloatingToolbar.ItemClickListener {
    @BindView(R.id.floatingToolbar)
    FloatingToolbar mFloatingToolbar;
    @BindView(R.id.fab)
    FloatingActionButton mFloatingButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_floating_toolbar_aty);
        ButterKnife.bind(this);

        mFloatingToolbar.setClickListener(this);
        mFloatingToolbar.attachFab(mFloatingButton);
    }

    @Override
    public void onClick(View v) {

    }

    @Override
    public void onItemClick(MenuItem menuItem) {

    }

    @Override
    public void onItemLongClick(MenuItem menuItem) {

    }
}
